package com.example.wechattakeaway.service;

import com.example.wechattakeaway.form.meroptionsform.InsertDishOptionForm;
import com.example.wechattakeaway.form.meroptionsform.UpdateDishOptionForm;
import com.example.wechattakeaway.vo.ResultVO;

public interface DishOptionService {
    //插入菜品选项
    ResultVO insertDishOption(InsertDishOptionForm insertDishOptionForm);

    //修改菜品选项
    ResultVO updateDishOption(UpdateDishOptionForm updateDishOptionForm);

    //根据id查询菜品选项
    ResultVO selectOptionById(Integer dishOptionId);


    //根据菜品id查询对应选项列表(分页)
    ResultVO selectOptionByDishId(Integer pageNum,Integer dishId);


    //删除选项
    ResultVO deleteDishOption(Integer optionId);

    //根据菜品选项id查询对应选项以及相关各项选项详情
    ResultVO selectAllById(Integer dishOptionId);

    //根据菜品id查询对应选项列表
    ResultVO selectByDishId(Integer dishId);
}
